<layout name="../../../resource/master"/>

<section class="scrollable padder">

    <ul class="breadcrumb no-border no-radius b-b b-light pull-in">

        <li><a href=""></i> 首页</a></li>

        <li class="active">类型属性管理</li>

    </ul>

    <section class="panel panel-default">
            <header class="panel-heading">
                类型属性管理
            </header>

        <div class="row wrapper">
            <div class="col-sm-4 m-b-xs">
                <a href="{:u('admin/TypeAttr/AddTypeAttribute',['tid'=>$_GET['tid']])}" class="btn btn-default btn-sm">添加类型属性</a>
            </div>
        </div>


    <div class="table-responsive">

         <table class="table table-striped b-t b-light">
            <thead>
                <tr>
                    <td>属性id</td>
                    <td>属性名称</td>
                    <td>属性类别</td>
                    <td>属性值</td>
                    <td>操作</td>
                </tr>
         </thead>
            <tbody>

            <volist name="typeattrbute" id="vo">
                <tr>
                    <td>{$vo['taid']}</td>
                    <td>{$vo['name']}</td>
                    <td><if condition="$vo['value']==1">属性
                    <else/>
                        规格</if>
                    </td>
                    <td>{$vo['typeattr']}</td>
                    <td>
                        <div class="btn-group">
                            <button data-toggle="dropdown" class="btn btn-primary btn-xs dropdown-toggle">操作 <span class="caret"></span></button>
                            <ul class="dropdown-menu dropdown-menu-right">
                                <li><a href="{:u('admin/TypeAttr/EditTypeAttribute',['tid'=>$_GET['tid'],'taid'=>$vo['taid']])}">编辑</a></li>
                                <li class="divider"></li>
                                <li><a href="{:u('del',['tid'=>$vo['taid']])}">删除</a></li>
                            </ul>
                        </div>
                    </td>
                </tr>
            </volist>
                </tbody>
            </table>

    </div>
    </section>
</section>